<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户信息</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/datepicker/datepicker3.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>

<body class="hold-transition skin-purple sidebar-mini">

<div class="wrapper">

    <%@include file="header.jsp"%>

    <%@include file="aside.jsp"%>

    <div class="content-wrapper">

        <section class="content-header">
            <h1>
                用户管理
                <small>用户信息</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li><a href="all-order-manage-list.html">用户管理</a></li>
                <li class="active">用户信息</li>
            </ol>
        </section>

        <form action="${pageContext.request.contextPath}/user/updateById?id=${users.id}" method="post">
        <section class="content">

            <div class="panel panel-default">
                <div class="panel-heading">用户信息</div>
                <div class="row data-type">

                    <div class="col-md-2 title">用户Id</div>
                    <div class="col-md-4 data text">
                        ${users.id}
                    </div>

                    <div class="col-md-2 title">用户名</div>
                    <div class="col-md-4 data text">
                        <input type="text" class="form-control" placeholder="用户名" value="${users.user_Name}" name="user_Name">
                    </div>
                    <div class="col-md-2 title">密码</div>
                    <div class="col-md-4 data text">
                        <input type="text" class="form-control" placeholder="密码" value="${users.user_Password}" name="user_Password">
                    </div>

                    <div class="col-md-2 title">用户昵称</div>
                    <div class="col-md-4 data text">
                        <input type="text" class="form-control" placeholder="用户昵称" value="${users.user_Nickname}" name="user_Nickname">
                    </div>
                    <div class="col-md-2 title">性别</div>
                    <div class="col-md-4 data text">
                        <input type="radio" value="男" name="user_Sex" ${users.user_Sex=='男'?"checked":""}>男
                        <input type="radio" value="女" name="user_Sex" ${users.user_Sex=='女'?"checked":""}>女
                    </div>

                    <div class="col-md-2 title">出生日期</div>
                    <div class="col-md-4 data text">
                        <div class="input-group date">
                            <div class="input-group-addon">
                                <i class="fa fa-calendar"></i>
                            </div>
                            <input type="text" class="form-control pull-right" id="datepicker-a3" value="${users.user_Birthdaystr}" name="user_Birthday">
                        </div>
                    </div>
                    <div class="col-md-2 title">Email</div>
                    <div class="col-md-4 data text">
                        <input type="text" class="form-control" placeholder="Email" value="${users.user_Email}" name="user_Email">
                    </div>
                    <div class="col-md-2 title">联系方式</div>
                    <div class="col-md-4 data text">
                        <input type="text" class="form-control" placeholder="联系方式" value="${users.user_Mobile}" name="user_Mobile">
                    </div>
                    <div class="col-md-2 title">地址</div>
                    <div class="col-md-4 data text">
                        <input type="text" class="form-control" placeholder="地址" value="${users.user_Address}" name="user_Address">
                    </div>
                    <div class="col-md-2 title">状态</div>
                    <div class="col-md-4 data text">
                        ${users.user_Status_str}
                    </div>
                </div>
            </div>
            <div class="box-tools text-center">
                <button type="submit" class="btn bg-maroon">保存</button>
                <button type="button" class="btn bg-default" onclick="location.href='${pageContext.request.contextPath}/user/searchuser'" >返回</button>
            </div>
        </section>
        </form>
    </div>
</div>
<script src="${pageContext.request.contextPath}/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/jQueryUI/jquery-ui.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/daterangepicker/daterangepicker.js"></script>
<script src="${pageContext.request.contextPath}/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/plugins/adminLTE/js/app.min.js"></script>
<script>
    // 设置激活菜单
    function setSidebarActive(tagUri) {
        var liObj = $("#" + tagUri);
        if (liObj.length > 0) {
            liObj.parent().parent().addClass("active");
            liObj.addClass("active");
        }
    }

    $(document).ready(function() {
        $('#datepicker-a3').datepicker({
            autoclose: true,
            language: 'zh-CN'
        });
    });


    $(document).ready(function() {
        $('#datepicker-a6').datepicker({
            autoclose: true,
            language: 'zh-CN'
        });
    });


    $(document).ready(function() {
        // 激活导航位置
        setSidebarActive("user-setting");
    });
</script>
</body>

</html>
